package com.yenlien.traceyun.milk.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.persistence.*;
import java.math.BigDecimal;
/**
 * @Date 2023/8/25
 * @Author ChenXi
 * @Descript 总大屏奶站数据
 */
@Entity
@Table(name = "t_milk_screen")
@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class MilkScreen {

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private int id;

    @ApiModelProperty(value = "奶站")
    private String milkName;

    @ApiModelProperty(value = "金额")
    private Long money;

    @ApiModelProperty(value = "收奶量")
    private BigDecimal milkYield;
}
